package com.jyxd.web.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import tech.powerjob.client.PowerJobClient;

@Configuration
@Slf4j
public class PowerClientConfig {

    @Value("${powerjob.worker.server-address}")
    private String address;
    @Bean
    public PowerJobClient jobClient() {
        log.error(address);
        return new PowerJobClient(address,"icu","123456");
    }
}
